package com.ck.ips.core.listener.event;

import org.springframework.context.ApplicationEvent;

/**
* @Description: 用户登录成功事件
* @Author: hf
* @Date:    2019/5/5 16:59
* @Version: 1.0
*/
public class LoginSuccessEvent extends ApplicationEvent {

    /** 登录用户名 */
    private String userName;
    /** 登录ip */
    private String ip;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public LoginSuccessEvent(Object source,String userName,String ip) {
        super(source);
        this.userName = userName;
        this.ip = ip;
    }

}
